<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"  prefix="fn"%>
<c:set var="base" value="${pageContext.request.contextPath}"></c:set>
<!-- BEGIN HEADER -->
  <div class="t-l">我的工作台</div>
  <div class="t-user">登陆用户：${admin.name}&nbsp;<a style="color:#00FF00;text-decoration:underline;" onclick="clearsession()">退出</a></div>
  <div class="clear"></div>
  <script type="text/javascript">
	               function clearsession(id){
                    $.ajax({
                    	type: "POST",
                    	dataType: "json", // 数据格式:JSON
                    	url: '${base}/back/clearsession.do',
                    	success: function (data) {
                    	   if(data.ok == 'ok'){
                    		   window.location.href='${base}/loginUi.do';
                    	   }else{
                    	        		  
                    	   }
                    	}
                    });
	              };
              </script>